package com.xinyu.web.testTX;

import org.springframework.jdbc.core.support.JdbcDaoSupport;

public class AccountDaoIml extends JdbcDaoSupport implements AccountDao {
	
	public void increaseMoney(Integer id, Double money) {
			String sqlString = "update t_account set money = money+? where id = ? ";
			super.getJdbcTemplate().update(sqlString, money,id);
	}
	public void decreaseMoney(Integer id, Double money) {
		String sqlString = "update t_account set money = money-? where id = ? ";
		getJdbcTemplate().update(sqlString, money,id);
	}

}
